package com.lswms.service;

import java.util.List;
import java.util.Map;

import com.lswms.common.page.PageInfo;
import com.lswms.common.service.CrudService;
import com.lswms.dto.YnLotteryTicketResultDTO;
import com.lswms.dto.vo.req.DoubleBallDetailReq;
import com.lswms.dto.vo.req.HistoryOpenReq;
import com.lswms.dto.vo.req.SaveDataReq;
import com.lswms.dto.vo.resp.DoubleBallDetailResp;
import com.lswms.dto.vo.resp.IndexDataResp;
import com.lswms.dto.vo.resp.NewOpenLotteryResp;
import com.lswms.entity.YnLotteryTicketResultEntity;

/**
 * 彩票结果表
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2020-06-20
 */
public interface YnLotteryTicketResultService extends CrudService<YnLotteryTicketResultEntity, YnLotteryTicketResultDTO> {

	/**
	 * 添加数据
	 */
	public void saveTicketResult(SaveDataReq req);
	/**
	 * 双色球、排列五详情页
	 * @param req
	 */
	public NewOpenLotteryResp doubleBallDetail(DoubleBallDetailReq req);
	
	/**
	 * 最新开奖
	 * @return
	 */
	public List<NewOpenLotteryResp> newOpenLottery();
	/**
	 * 历史开奖
	 * @param req
	 * @return
	 */
	public PageInfo<NewOpenLotteryResp> historyOpenLottery(HistoryOpenReq req);
	/**
	 * 首页banner、喜报
	 * @return
	 */
	public IndexDataResp indexData();
	/**
	 * 每日数据
	 * @return
	 */
	public Map<String,String> todayData(String s,String e);
}